﻿using System;
using Bingosoft.Modules.DataDictionary;
using Bingosoft.Web.Utils;
using System.Web.UI;

namespace Bingosoft.WebApp.Modules.StorageManager
{
    public partial class StorageEdit : FormPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request["Id"]))//如果是编辑
            {
                //如果有权限
                if (Bingosoft.Security.SecurityContext.User.HasRole("AD6754E3-B4D8-412D-9CD9-DC19DC42EBEA"))
                {

                }
                else
                {
                    ScriptHelper.Alert(this.Page,"您的账户没有更改权限，若需更改请联系管理员");
                    ScriptHelper.CloseDialog(this, "true");
                    return;
                }
            }

        
        }

        protected void Save(object sender, EventArgs e)
        {
            this.SmartFormView1.SaveOrUpdate();
            ScriptHelper.CloseDialog(this, "true");
        }

       
    }
}